package com.wteam.dragon.shop.pojo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.wteam.dragon.system.basebean.bean.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 品牌推荐
 * @Author 陈晓辉
 * @Date 2021/3/25 16:41
 */
@Data
@Table
@TableName
@EqualsAndHashCode(callSuper = true)
public class BrandHome extends BaseBean {
    @IsKey
    @IsNotNull
    @IsAutoIncrement
    @TableId(type = IdType.AUTO)
    @ColumnType(MySqlTypeConstant.BIGINT)
    @Column(comment = "自增id")
    private Long id;

    @IsNotNull
    @Column(comment = "对应的品牌id")
    @ColumnType(MySqlTypeConstant.BIGINT)
    private Long brandId;

    @IsNotNull
    @Column(comment = "对应的品牌名称")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String brandName;

    @Column(comment = "对应的品牌名称(英文)")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String brandNameEn;

    @IsNotNull
    @Column(comment = "推荐状态(0 不推荐 1 推荐)")
    @ColumnType(MySqlTypeConstant.TINYINT)
    @DefaultValue("1")
    private Integer recommendStatus;

    @IsNotNull
    @Column(comment = "排序")
    @ColumnType(MySqlTypeConstant.BIGINT)
    @DefaultValue("1")
    private Long sort;

}
